home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1003 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. Date: Sun, 13 Feb 1994 14:09:25 +0100
  2. From: Oliver Teuber <hiot@helios.rz.tu-clausthal.de>
  3. Message-Id: <199402131309.OAA07696@helios.rz.tu-clausthal.de>
  4. To: mint@atari.archive.umich.edu
  5.  
  6. Hello Folks
  7.  
  8. this are two patches for the bin-utils patchlevel 37. i have solved?
  9. two errors?
  10.  
  11. 1. the symbol type should be swaped on little-endian systems
  12. 2. the ld try to alloc a 0 (zero!) byte huge block. malloc says "No!"
  13.    i just add 4 byte to the block-size.
  14.  
  15. i detect the errors on my linux-486-box.
  16.  
  17. mfg oliver
  18.  
  19. p.s. xcus my bad english
  20. -----------------------------------------------------------------------------
  21.  
  22. *** ld.c    Fri Feb 11 04:36:10 1994
  23. --- ld.old.c    Fri Jul 16 10:22:19 1993
  24. *************** char * str;
  25. *** 5026,5035 ****
  26.   fake_out:
  27.     sym.a_value = p->n_value;
  28.   
  29. - #ifdef BYTE_SWAP
  30. -   sym.a_type=SWAP2(sym.a_type);
  31. - #endif
  32.   #ifndef WORD_ALIGNED
  33.     mywrite((char *)&sym, sizeof sym, 1, outdesc);
  34.     if (i > 0)
  35. --- 5026,5031 ----
  36. *************** void *
  37. *** 6096,6102 ****
  38.   xmalloc (size)
  39.        int size;
  40.   {
  41. !   register void *result = malloc (size+4);
  42.     if (!result)
  43.       fatal ("virtual memory exhausted", 0);
  44.     return result;
  45. --- 6092,6098 ----
  46.   xmalloc (size)
  47.        int size;
  48.   {
  49. !   register void *result = malloc (size);
  50.     if (!result)
  51.       fatal ("virtual memory exhausted", 0);
  52.     return result;
  53.